<?php
App::uses ( 'AuthComponent', 'Controller/Component' );
class Job extends AppModel {
	public $name = 'Job';
	
	public $validate = array ('title' => array ('required' => array ('rule' => array ('notEmpty' ), 'message' => 'A job title is required' ) ), 'company name' => array ('required' => array ('rule' => array ('notEmpty' ), 'message' => 'A company name is required' ) ), 'description' => array ('required' => array ('rule' => array ('notEmpty' ), 'message' => 'A description is required' ) ), 'email_to' => array ('required' => array ('rule' => array ('notEmpty' ), 'message' => 'Please specify the contact email' ) ), 'contact_person' => array ('required' => array ('rule' => array ('notEmpty' ), 'message' => 'Please specify the contact people' ) ) );
	
	public $hasMany = array ('JobType' => array ('className' => 'JobType', 'foreignKey' => 'job_id' ) );
}